package win.larryzeal.redisdemo.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import javax.naming.ldap.Control;

/**
 * Created by 张少昆 on 2017/1/5.
 */
@Configuration
@EnableWebMvc
@ComponentScan( basePackages = "win.larryzeal", includeFilters = {@ComponentScan.Filter( type = FilterType.ANNOTATION, value = {Controller.class, RestController.class} )} )

public class MvcConfig extends WebMvcConfigurerAdapter {
}
